home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 90 / CD Actual 90.iso / Software3D / VirtualLight / VLight1.3win32.exe / Examples / Level1 / Particles.vib < prev    next >
Encoding:
Text File  |  2002-10-07  |  828 b   |  29 lines

  1. // VirtuaLight VIB-Structure
  2.  
  3. Sequence [ FirstFrame 0 AnimationLength 250 ]
  4.  
  5. Camera [
  6.   (25*sin(CurrentFrame*dt),24,-25*cos(CurrentFrame*dt)), (0,2,0), (0,1,0)
  7.   FieldOfView 60 Format(320,240) FrameAspectRatio 4/3
  8. ]
  9.  
  10. Background '0.075,0.1,0.075'
  11. PointLight [ (10, 50, -10) Decay LINEAR Intensity 40*'1,1,1' ]
  12. PointLight [ (-10, 55, 15) Decay LINEAR Intensity 45*'1,1,1' ]
  13.  
  14. static bball = Shape [ Sphere ((0, 0, 0), 0.25) simple_blue ]
  15.  
  16. ParticleGenerator [
  17.   Shape "bball"
  18.   Aging 0.15
  19.   Location (0, 10, 0)
  20.   Acceleration (0, -5, 0)
  21.   Velocity 3*fBm((0, 0, 0), (0.6, 0.6, 0.6))
  22.   CollisionDetection ((Age >= 1.0) ? 1 : 0)
  23.   Death ((V[1] < 0.0 && y < -0.1) ? 1 : 0)
  24.   Particles 60
  25. ]
  26.  
  27. Shape [ Disk ((0, -0.1, 0), (0, 1, 0), 18 ) matte_yellow ]
  28.  
  29. Shape [ Cylinder((0,-0.1,0), (0, 12, 0), 18) simple_red ]